<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <script src="https://cdn.staticfile.org/react/16.4.0/umd/react.development.js"></script>
    <script src="https://cdn.staticfile.org/react-dom/16.4.0/umd/react-dom.development.js"></script>
    <!-- 生产环境中不建议使用 -->
    <script src="https://cdn.staticfile.org/babel-standalone/6.26.0/babel.min.js"></script>
    <title>Document</title>
    <style>
        .gxsunny {
            color: aqua
        }

        .class-a {
            background: yellowgreen;
            color: white;
        }
    </style>
</head>

<body>
    <div id="app"></div>
</body>
<script type="text/babel">
        var b  = 'hello,everyOne~';
        var classA = 'class-a';
        var imgSrc = 'https://scontent-lax3-1.xx.fbcdn.net/v/t1.0-9/25399091_163250614405853_6722869894941463626_n.jpg?_nc_cat=102&_nc_ht=scontent-lax3-1.xx&oh=2b7320d0eb464e57e9c5ba9301ea52db&oe=5CF5F9E1'
        let a =  (<div>
                    <input/>
                    <h1 className="gxsunny"> hello ,react! </h1>
                    <h1 className={classA}> hello ,react! </h1>
                    <h2 style={{'background':'yellow'}}>{b}</h2>
                    <img onClick={show} src={imgSrc}/><br/>
                    <span>tardy</span>
                </div>);
        ReactDOM.render(
            a,
            document.getElementById('app')
        )    

        function show() {
            alert('美女约吗')
        }       
    </script>

</html>